#include "clkCore.h"

clkCore::clkCore()
{

}

clkCore::~clkCore()
{
	shut();
}

void clkCore::init(
	char* a_name,
	V2DF  a_coordinate,
	V2DF  a_dimension,
	bool  a_windowed,
	bool  a_vsync)
{
	clkApplication::initApplication(a_name,a_coordinate,a_dimension);
	clkDirect3D11::initDirect3D11(m_appHwnd,m_appCDimension,a_windowed,a_vsync);
	clkDirectInput::initDirectInput(m_appHwnd,m_appHinstance);
	clkTimer::initTimer();
}

void clkCore::shut()
{
	clkApplication::shutApplication();
	clkDirect3D11::shutDirect3D11();
	clkDirectInput::shutDirectInput();
	clkTimer::shutTimer();
}